Fix some indentation problem with \; and pipes.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 24 Jun 2014 20:16:10 +0000 (16:16 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 24 Jun 2014 20:16:10 +0000 (16:16 -0400)
commitf8fc5e411b890212e739bfaffddebcb163464271
treec3c21e804075e037d22e118da20083d4d5ce323c
parentb50f7419872892a1f0d9bbe896cb3a1c1b1e63e8
Fix some indentation problem with \; and pipes.
* lisp/progmodes/sh-script.el (sh-mode-syntax-table): Set syntax of ;|&.
(sh-smie--default-forward-token, sh-smie--default-backward-token):
New functions.
(sh-smie-sh-forward-token, sh-smie-sh-backward-token)
(sh-smie-rc-forward-token, sh-smie-rc-backward-token): Use them.
(sh-smie-sh-rules): Fix indentation of a pipe at BOL.
lisp/ChangeLog
lisp/progmodes/sh-script.el
test/indent/shell.sh